/**
 * Program   :   ServerInitServlet.java
 * Author    :   shadow guo
 * Create    :   2013-6-24 下午3:36:43
 *
 * Copyright 2008 by Tongfu Information Technology Co. Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Tongfu Information Technology Co. Ltd. ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Tongfu Information Technology Co. Ltd.
 * 
 */
package com.tongfusoft.web.core.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.tongfusoft.web.core.service.IServerInitService;

/**
 * 服务器初始化Servlet，比如加载数据
 * @author Shadow
 *
 */
public class ServerInitServlet extends HttpServlet{
	private IServerInitService initService ;

	public IServerInitService getInitService() {
		return initService;
	}

	public void setInitService(IServerInitService initService) {
		this.initService = initService;
	}
	
	@Override
	public void init() throws ServletException { 
		if(this.getInitService() != null){
			this.getInitService().initEnv(super.getServletContext());
		}
	}
	
	
}
